home *** CD-ROM | disk | FTP | other *** search
- Path: teal.csn.net!not-for-mail
- From: thads@csn.net (Thad Smith)
- Newsgroups: comp.programming,comp.sys.sgi.misc,comp.lang.c
- Subject: Re: C pointer question.
- Date: 4 Apr 1996 22:15:45 -0700
- Organization: T3 Systems
- Message-ID: <WlHZxQ9ytRHf089yn@csn.net>
- References: <315BFDBB.773C@wight.hursley.ibm.com> <4jlhpl$i3c@hn.ocbbs.gen.nz>
- <31616BAF.5BAB@datalytics.com> <3162659B.6201@wight.hursley.ibm.com>
- Reply-To: ThadSmith@acm.org
- NNTP-Posting-Host: 199.117.27.22
-
- In article <3162659B.6201@wight.hursley.ibm.com>,
- Max Waterman <dwater@wight.hursley.ibm.com> wrote:
-
- >Ie what are the arguments for :
- >
- >char name1,
- > name2,
- > name3;
- >
- >over :
- >
- >char name1;
- >char name2;
- >char name3;
- >
- >?
- >
- >Aren't they identical?
-
- One minor reason to prefer the latter is that if a syntax error were
- found in name1, the compiler would probably not recover parsing until
- the semicolon. This would affect the number of error messages shown
- and the readability of them. Obviously the error needs to be fixed --
- the issue is whether you can gain some other useful diagnostics on the
- same pass.
-
- Thad
-